﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

namespace WEBSITE.BLL
{

    public class BinhLuanBLL
    {
        ProshopService.ProshopServiceClient client = new ProshopService.ProshopServiceClient();
        
        public bool themBinhLuan(int maSP, int maKH, String noiDung, DateTime ngayBL)
        {
            try
            {
                return client.themBinhLuan(maSP, maKH, noiDung, ngayBL);
            }
            catch (Exception)
            {

                return false;
            }
        }

        public DataSet danhsachBinhLuan()
        {
            try
            {
                return client.danhSachBinhLuan();
            }
            catch (Exception)
            {
                
                return null;
            }
        }

        public bool suaBinhLuan(int maBL, string noiDung)
        {
            try
            {
                return client.suaBinhLuan(maBL, noiDung);
            }
            catch (Exception)
            {

                return false;
            }
        }
    }
}